package com.zq.server.api.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.zq.server.api.domain.entity.ApiGroupMember;

/**
 * @author Super
 * @description 针对表【a_groupmember】的数据库操作Mapper
 * @createDate 2024-02-25 20:42:22
 * @Entity com\zq\entity.entity.GroupMember
 */
@Mapper
public interface GroupMemberMapper {


    /**
     * is 组id get GroupMember
     *
     * @param groupId
     * @return
     */
    List<ApiGroupMember> ByGroupId(Integer groupId);


    void insert(ApiGroupMember groupMember);


    /**
     * 查询用户是否参加了活动
     *
     * @param
     * @return
     */
    int userIsJoinActivity(Integer activityId, Long userId);
}
